// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import router from './router'

Vue.use(ElementUI)

// 阻止启动生产消息，是消息提示的环境配置；会提供警告帮助开发者应对常见的错误和陷阱，如果去掉改代码即为生产环境不会再有警告信息，从而避免一定的运行时开销
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // render(h)=>h(App), 改行代码相当于下面两行代码
  components: { App },
  template: '<App/>'
})
